package cn.pugle.oj.leetcode;

import cn.pugle.oj.catalog.Unknown;

/**
 * @author tzp
 * @since 2020/11/13
 */
public class LC190 implements Unknown {
    public int reverseBits(int n) {
        return -1;
    }

    public byte reverseBits(byte n) {
        byte result = 0;
        for (int i = 0; i < 8; i++) {
            result += (1 & n);
            result = (byte) (result << 1);
        }
        return result;
    }

    public static void main(String[] args) {
        byte a =3;
        System.out.printf("%2", a);//todo
//        System.out.println(new LC190().reverseBits());
    }
}
